package com.dl.providepayment.service.impl;

import com.dl.pojo.Payment;
import com.dl.providepayment.dao.PaymentDao;
import com.dl.providepayment.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ProjectName: mcroservices
 * @Package: com.dl.providepayment.service.impl
 * @ClassName: PaymentServiceImpl
 * @Author: 86977
 * @Description: ${description}
 * @Date: 2021/6/23 21:37
 * @Version: 1.0
 */
@Service
public class PaymentServiceImpl implements PaymentService {

  @Autowired
  PaymentDao paymentDao;

  @Override
  public int create(Payment payment) {
    return paymentDao.create(payment);
  }

  @Override
  public Payment queryById(long id) {
    return paymentDao.queryById(id);
  }
}
